import QtQuick 1.0

Rectangle {
    id: radioFieldGroup
    width: 360
    height: 100
    color: "#00FFFFFF"

    property alias labelText: fieldLabel.labelText
    property variant selectedBtnID: selectedRadioBtn.selectedObj
    property variant somMetric: btnMetric
    property variant somUS: btnUS


    QtObject {
        id: selectedRadioBtn
        property variant selectedObj
    }

    /** Field Label **/
    Label{
        id: fieldLabel
        anchors {
            left: parent.left; leftMargin: 10;
            right: parent.right; rightMargin: 10;
        }
        width: parent.width;
        height: 30
    }

    Rectangle{
        id: buttons
        anchors {
            left: parent.left; leftMargin: 10;
            right: parent.right; rightMargin: 10;
        }
        height: 50;
        width: parent.width;
        y: 30;
        color: "#00FFFFFF"



        RadioButton {
            id: btnMetric
            buttonWidth: 125;
            buttonText: "Metric";
            anchors {
                left: parent.left; leftMargin: 25;
            }
        }

        RadioButton {
            id: btnUS
            buttonWidth: 125;
            buttonText: "US";
            anchors {
                right: parent.right; rightMargin: 25;
            }
        }

    }
}
